package week7.jsjf;

public class LinkedBinarySearchTreeTest {
    public static void main(String[] args) throws InterruptedException {
        LinkedBinarySearchTree a=new LinkedBinarySearchTree();
        a.addElement(80);
        a.addElement(10);
        a.addElement(9);
        a.addElement(6);
        a.addElement(7);
        a.addElement(85);
        a.addElement(16);
        a.addElement(44);
        System.out.println(a.toString());
        System.out.println(a.findMax());
        System.out.println(a.findMin());
        System.out.println(a.find(85));
        a.removeElement(10);
        System.out.println(a.toString());
        a.removeMax();
        System.out.println(a.toString());
        a.removeMin();
        System.out.println(a.toString());
    }
}
